#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @File: Turtle花之集合之美.py
# Author: Chen jun
# @Time: 2019/11/2 16:08



# 参考:https://blog.csdn.net/lzqg1990/article/details/91839571

from turtle import *


pensize (5)
speed (0)

##【背景圆】
color ('#99BBFF')  # 浅紫
pu ()
goto (0, -200)
pd ()
begin_fill ()
circle (200)
end_fill ()


##定义画弧函数
def arc(initial_degree, range_num, step, rotate_degree):
    seth (initial_degree)
    for n in range (range_num):
        fd (step)
        rt (rotate_degree)  #


# 花盘
initial_degree = 0
for i in range (18):
    pu ()
    home ()
    pd ()
    pencolor ("#FFDEAD")
    arc (initial_degree + 20 * i, 100, 2, 2)

hideturtle ()



"""
from turtle import *
pensize(4)
speed(0)
 
##【背景圆】
color('white')
pu()
goto(0,-200)
pd()
begin_fill()
circle(200)
end_fill()
 
 
##定义画弧函数
def arc(initial_degree,range_num,step,rotate_degree):
    seth(initial_degree)
    for n in range(range_num):   
        fd(step)
        rt(rotate_degree)#    
 
#花盘
initial_degree = 0
for i in range(9):
    pu()
    home()
    pd()
    pencolor("#FFDEAD")
    arc(initial_degree+40*i,100,3,3)
 
hideturtle()
 

"""